setOpusMaxPlaybackRate

public void setOpusMaxPlaybackRate(int maxPlaybackRate)

Sets the MaxPlaybackRate. Maxplaybackrate is a hint about the maximum output sampling rate that the receiver is capable of rendering in Hz. The decoder MUST be capable of decoding any audio bandwidth, but, due to hardware limitations, only signals up to the specified sampling rate can be played back. Sending signals with higher audio bandwidth results in higher than necessary network usage and encoding complexity, so an encoder SHOULD NOT encode frequencies above the audio bandwidth specified by maxplaybackrate. This parameter can take any value between 8000 and 48000, although commonly the value will match one of the Opus bandwidths . By default, the receiver is assumed to have no limitations, i.e., 48000. Decreasing MaxPlaybackRate will cause less bandwidth usage. Decreasing MaxPlaybackRate will cause less bandwidth usage (For further information check RFC-7587).

MobileSDK default MaxPlaybackRate=16000

8000 <= maxPlaybackRate <= 48000 In case this value set as -1 WebRTC defaults will be use.

Since

4.2.4

Parameters

maxPlaybackRate

MaxPlaybackRate value as an integer